ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  GetRef( )

GetRef(FunctionOrSubName)

VBScript 5.0

The GetRef function binds a function or subroutine to an event on a DHTML (Dynamic HTML) page.

The required ObjectName is the name of a DHTML object to which the DHTML event is associated.

The required EventName is the name of a DHTML event to which the function or subroutine will be bound.

The mandatory FunctionOrSubName argument is the name of a VBScript function or subroutine to which the DHTML event is to be associated.

The above must be used with the Set keyword in the following manner:

Code:
Set ObjectName.EventName = GetRef(FunctionOrSubName)